package com.atguigu.spzx.feign.cart.anno;

import com.atguigu.spzx.feign.cart.interceptor.AddTokenRequestInterceptor;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;



/**
 * ClassName: EnableAddTokenRequestInterceptor
 * Package: com.atguigu.spzx.feign.cart.anno
 * Description:
 *      开启添加token的请求拦截器 -> 会拦截feign客户端，然后在请求头中添加token
 * @Author 刘强
 * @Create 2024/7/17 19:40
 * @Version 1.0
 */

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(AddTokenRequestInterceptor.class)
public @interface EnableAddTokenRequestInterceptor {

}
